# 进制相关函数

print(bin(5))
# 0b101

print(int(0b1111011))
# 123

print(oct(123))
# 0o173

print(hex(123))
# 0x7b

# ascii码
'''
A - Z 65-90
a - z 97-122
0 - 9 48-57
'''
# 字符转为ascii
r = ord('a')
print(r)
# 97
print(chr(100))
# d
